package cn.xspace.module.other.http.req;

import com.xspace.android.xafcommon.network.message.ARequestMsg;
import com.xspace.android.xafcommon.util.Constants;
import com.xspace.android.xafcommon.util.LogUtils;


/**
 * 
 * @ClassName: UpdateUserInfoReq
 * @author:mawen
 * @Date：2014-3-3
 * @version V1.0.0
 * @Description: 更新用户账号信息
 */
@Deprecated
public class QueryAppIndexReq extends ARequestMsg {
	public String accountID;
	public String appId;
	public String user_type;


	@Override
	public String getURL() {
		LogUtils.d("--------------------" + Constants.URL_QUERYAPPINDEXINFO);
		return Constants.URL_QUERYAPPINDEXINFO;
	}

	@Override
	protected byte[] toBytes() {
		String value ="";
		if("".equals(accountID)){
			 value = "{app_id:\"" + appId +  "\",user_type:\"" + user_type +"\"}";
		}else{
			 value = "{user_id:\"" + accountID + "\",app_id:\"" + appId +  "\",user_type:\"" + user_type +"\"}";
		}
		LogUtils.d("QueryAppIndexReq==>" + value);
		return value.getBytes();
	}

	/*
	 * <p>Title: toJson</p> <p>Description: </p>
	 * 
	 * @return
	 * 
	 * @see com.xspace.android.xafcommon.network.message.ARequestMsg#toJson()
	 */
	@Override
	protected String toJson() {
		return null;
	}

}
